package com.aloda.query;

import com.aloda.enums.UserCategory;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper=true)
public class PicPageDTO extends PageQuery{

    /**
     * 创建者用户名
     */
    private String createUser;

    /**
     * 图片url
     */
    private String url;

    // 开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;
    // 结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
